Skip to content

Move diagnostics from sfc_diff to sfc_diag#2

Open
wlanghans wants to merge 2 commits intowolfgang/rebase_sofar-071124_on_mainfrom
wolfgang/bug_fix_u10n_and_recompute_sfcprop
Open

Move diagnostics from sfc_diff to sfc_diag#2
wlanghans wants to merge 2 commits intowolfgang/rebase_sofar-071124_on_mainfrom
wolfgang/bug_fix_u10n_and_recompute_sfcprop

Conversation

@wlanghans
Copy link
Copy Markdown

@wlanghans wlanghans commented May 12, 2025

Description

This moves the computation of surface diagnostics into the sfc_diag subroutine. This routine is used to provide 10 m winds and 10-m neutral winds. Originally, winds were computed in sfc_diff and stored in sfcprop thereby using not the final similar functions. With this PR the 10-m winds in sfcprop will be computed in sfc_diag using the correct final similarity functions. The winds are thus identical to those used for diagnostic purposes.

Fixes # (issue)

How Has This Been Tested?

Not yet.

Checklist:

Please check all whether they apply or not

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

…ostic output and sfcprop; fix bug in computation of 10-m neutral wind components
@wlanghans wlanghans changed the title Fix bug in computation of neutral wind Move diagnostics from sfc_diff to sfc_diag May 12, 2025
Copy link
Copy Markdown
Collaborator

@StevePny StevePny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to test this in an experiment before merging. At a minimum, we should verify the impacts are either positive or negligible on one or more test dates.

Please retain and keep track of any lines added by Sofar via comments, since we may eventually merge this into GFDL's branch.

@wlanghans
Copy link
Copy Markdown
Author

We'll need to test this in an experiment before merging. At a minimum, we should verify the impacts are either positive or negligible on one or more test dates.

Please retain and keep track of any lines added by Sofar via comments, since we may eventually merge this into GFDL's branch.

Why do we need comments on what lines are from Sofar? If we merge into another branch/fork than the commit that gets merged will show what got added in that PR. Isn't that the beauty of having a versioning system like git? Commenting is not really clean coding according to the clean code bible, mostly because it means you have to maintain those comments plus it adds redundancy since it's tracked through git.
Happy to leave those comments in the end, but I'm trying to understand this better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants